package com.gaotime.app.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
/**
 * 
 * @author  javach
 * @mail    javach@foxmail.com
 * @version v1.0
 */
public abstract class DefaultController extends MultiActionController {

	protected static final Log log = LogFactory.getLog("DefaultController");

	protected String getParameter(HttpServletRequest request, String name) {
		return request.getParameter(name);
	}
	
	protected void setSessionObject(HttpServletRequest request,String key,Object obj){
		request.getSession().setAttribute(key, obj);
	}
	
	protected Object getSessionObject(HttpServletRequest request,String key){
		return request.getSession().getAttribute(key);
	}
}
